package pokerantani.v2.linematchers;

import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;


public class SeatInfo extends LineMatcher {
	static final Pattern pSeat = Pattern.compile("Seat (" + RE.INT + "): (" + RE.PLAYER + ") \\(\\$?(" + RE.FLOAT + ")( in chips)?\\)");
	
	public int seatNumber;
	public String playerName;
	public float playerChips;
	
	public boolean match(String line) {
		if(match(line, pSeat)) {
			seatNumber = groupInt(1);
			playerName = group(2);
			playerChips = groupFloat(3);
			return true;
		}
		return false;
	}
}
